package com.dhcc.core.framework.security.client.oauth2;

import org.pac4j.oauth.client.OAuth20Client;

public class DthClient extends OAuth20Client<DthProfile> {


    public DthClient(final String key, final String secret) {
        setKey(key);
        setSecret(secret);
    }

    @Override
    protected void clientInit() {
        configuration.setApi(new DthApi(configuration.getKey(), configuration.getSecret()));
        configuration.setProfileDefinition(new DthProfileDefinition());
        configuration.setScope(DthProfileDefinition.USER_CODE);
        super.clientInit();
    }

}
